using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input.Touch;

namespace G4KFramework.Inputs
{
    public class GGestureDefinition
    {
        public GestureType Type { get; set; }
        public Rectangle CollisionArea { get; set; }
        public GestureSample Gesture { get; set; }
        public Vector2 Delta { get; set; }
        public Vector2 Delta2 { get; set; }
        public Vector2 Position { get; set; }
        public Vector2 Position2 { get; set; }

        public GGestureDefinition(GestureType gestureType, Rectangle gestureArea)
        {
            Gesture = new GestureSample(gestureType, new TimeSpan(0),
                Vector2.Zero, Vector2.Zero, Vector2.Zero, Vector2.Zero);
            Type = gestureType;
            CollisionArea = gestureArea;
        }

        public GGestureDefinition(GestureSample gestureSample)
        {
            Gesture = gestureSample;
            Type = gestureSample.GestureType;
            CollisionArea = new Rectangle((int)gestureSample.Position.X,
                (int)gestureSample.Position.Y, 5, 5);
            Delta = gestureSample.Delta;
            Delta2 = gestureSample.Delta2;
            Position = gestureSample.Position;
            Position2 = gestureSample.Position2;
        }
    }
}
